package com.example.yls.democ;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

/**
 * Created by yls on 2018/11/7.
 */

public class TimeReceiver extends BroadcastReceiver {
    private IOnTimeChangeListener listener;
    public TimeReceiver(IOnTimeChangeListener listener) {
                this.listener=listener;
            }
               @Override
 	    public void onReceive(Context context, Intent intent) {
               listener.updateTime();
            }
}
